package com.lz.myblog.repository;

import com.lz.myblog.entity.Writingsinfo;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface WritingsRepository extends JpaRepository<Writingsinfo,Integer> {

    public List<Writingsinfo> findAllByWritingstypeContaining(String writingsname ,Pageable p);
    public List<Writingsinfo> findAllByWritingstypeContaining(String writingsname );
    public List<Writingsinfo> findAllByWritingstitleContaining (String keyword);

}
